 <style>
.ttl{width:80px;text-align:right;display-inline:block;}
.pop_cont_input{line-height:30px;} .pop_cont_input input{pading:0px 5px;} 
.pop_cont_input select{height:28px;}
 .ding{width:100%;}
 .ding>li{width:19%;float:left;height:200px;}
.dinger{width:100%;height:200px;}
.dinger>li{width:100%;height:20px;line-height:20px;}

 </style>
 <div class="pop_cont" style="width:1000px;left: 20%;top: 10%;">
 <input type="hidden" value="<?php echo $id; ?>" id="editId" />
       <!--title-->
       <h3><?php echo $title;?></h3>
       <!--content-->
       <div class="pop_cont_input">
        <ul>
         <li>
          <span class="ttl">角色名称</span>
          <?php echo $info['gname'];?>
         </li>
          <li>
          <div style="width:100%;">
               <ul class="ding">
               <?php
                  foreach($ruleobjLists as $key=>$val)
                  {
                     ?>
                     <li>-<input type="checkbox" name="item_power" value="<?php echo $val['id'];?>"><?php echo $val['oname'];?>
                     <?php
                     foreach($val['child'] as $k2=>$v2)
					 {
                     ?>
                     <ul class="dinger">
                     	<li style="padding-left:10px;margin:2px 0px;">-<input type="checkbox" name="item_power" value="<?php echo $v2['id'];?>"><?php echo $v2['oname'];?>
                     <?php
                        foreach($v2['child'] as $k3=>$v3)
						{
                        ?>
                        <li style="padding-left:20px;margin:2px 0px;">-<input type="checkbox" name="item_power" value="<?php echo $v3['id'];?>"><?php echo $v3['oname'];?></li>
                        <?php
						}
					?>
					<br style="clear:both;width:0px;height:0px;" />
					</ul>
					<?php
					 }
					?>
					</li>
					<?php
				  }
               ?>
               <br style="clear:both;width:0px;height:0px;" />
               </ul>
          </div>
         </li>
       
        </ul>
       </div>
      
       <!--bottom:operate->button-->
       <div class="btm_btn">
        <input type="button" value="确认" class="input_btn trueBtn"/>
        <input type="button" value="关闭" class="input_btn falseBtn"/>
       </div>
      </div>
      
      <script>
      $(function(){
     	 
	       $(".trueBtn").unbind().bind("click",function(){
			 
	    	var that =this;
   		    var url="/admin/group/editData";
   		    var id=$("#editId").val();
   		    var gname=$("#e-gname").val();
   		    var param={
   				   id:id,
   				   gname:gname,
   				   
   				   sys_opt:'editData'//后台判断编辑操作
   		    };
			 AjaxRequest(url,param,function(data){
  			   if(data.err==0)
  			   {
  				   SuccessTiShi("操作成功");
  				   $(".pop_bg").fadeOut();
  				   $(".pop_bg").html('');
  				   myResearch();
  			   }
  			   else
  			   {
  				   ErrTiShi(data.msg);
  			   }
  		   	});
			 
		  });
		   //弹出：取消或关闭按钮
		   $(".falseBtn").unbind().bind("click",function(){
		
			 $(".pop_bg").fadeOut();
		   });
		   
 $(".firstDept").change(function(){
			   
			   var url="/admin/user/selectDeptChange";
	   		    var id=$(this).val();
	   		   
	   		    var param={
	   				   id:id
	   				   
	   		    };
			   AjaxRequest(url,param,function(data){
	  			   if(data.err==0)
	  			   {
	  				   var html='<option value="">--选择--</option>';
	  				   $.each(data.data,function(i,v){
	  					 html +='<option value="'+v.id+'">'+v.depname+'</option>'
	  				   })
	  				   $(".secondDept").html(html);
	  			   }
	  			   else
	  			   {
	  				   ErrTiShi("操作失败");
	  			   }
	  		   	});
			   
		   });
 	});
      </script>